<div class="bjui-pageHeader">
<form id="pagerForm" data-toggle="ajaxsearch" action="__URL__" method="post">
	
	<input type="hidden" name="pageSize" value="{$numPerPage}">
    <input type="hidden" name="pageCurrent" value="{$_REQUEST['pageNum']|default=1}">
	 
        <div class="bjui-searchBar">
            <label>关键词：</label><input type="text" value="{$_REQUEST['keys']}" name="keys" class="form-control" size="12" />&nbsp;
				<label>等级状态：</label><select name='status' data-toggle='selectpicker'>
        <option value=''>全部</option>
        <option value='1'  <if condition="1 EQ $_REQUEST['status']">selected</if> >可用</option>
        <option value='0'  <if condition="'0' EQ $_REQUEST['status']">selected</if> >禁用</option>
        </select>&nbsp;
             <button type="submit"  class="btn-default" data-icon="search">查询</button>
              <a class="btn btn-orange" href="javascript:;" onclick="$(this).navtab('reloadForm', true);" data-icon="undo">清空查询</a>
			  <php>if(display(CONTROLLER_NAME.'/del')){</php><span style="float:right;" ><a href="__URL__/del/navTabId/{:CONTROLLER_NAME}" class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要清理吗？" data-icon="remove">清理</a></span> <php>}</php>
			  <php>if(display(CONTROLLER_NAME.'/outxls')){</php><span style="float:right;margin-right:5px;"><a href="__URL__/outxls" class="btn btn-blue" data-toggle="doexport" data-confirm-msg="确定要导出吗？" data-icon="arrow-up">导出</a></span><php>}</php>
			  <php>if(display(CONTROLLER_NAME.'/add')){</php><span style="float:right;margin-right:5px;"><a href="__URL__/add/navTabId/{:CONTROLLER_NAME}" class="btn btn-green" data-toggle="dialog" data-width="800" data-height="400" data-id="dialog-mask" data-mask="true" data-icon="plus">新增</a></span><php>}</php>
		</div> 
</form>
    
</div>
<div class="bjui-pageContent tableContent">
     <table data-toggle="tablefixed" data-width="100%" data-layout-h="0" data-nowrap="true">
        <thead>
            <tr>
            <th width="10" height="30"></th>
            <th data-order-direction='desc' data-order-field='id'>ID</th>
            <th>等级标识</th>
            <th data-order-direction='desc' data-order-field='proportion'>费用占比</th>
            <th>分值标准</th>
            <th>借款范围</th>
            <th>出借天数</th>
            <php>if(display(CONTROLLER_NAME.'/lock')){</php><th>状态</th><php>}</php>
            <th data-order-direction='desc' data-order-field='creat_time'>添加时间</th>
		        <php>if(display(CONTROLLER_NAME.'/edit')){</php><th>编辑</th><php>}</php>
            </tr>
        </thead> 
        <tbody>
    <volist id="v" name="list">
      <tr>
  		  <td></td>
  		  <td>{$v.id}</td>
        <td style="font-size: 18px;color:green">{$v.grade}</td>
        <td>{$v.proportion}&nbsp;&nbsp;%</td>
        <td>{$v.section_begin}--{$v.section_end}</td>
        <td>{$v.support_begin}--{$v.support_end}</td>
        <td>{:str_replace( ',','   ',$v['days'])}</td>
        <php>if(display(CONTROLLER_NAME.'/lock')){</php><td><a href="__URL__/lock/id/{$v['id']}/navTabId/{:CONTROLLER_NAME}" data-toggle="doajax" data-confirm-msg="确定要操作吗？"><if condition="$v.status EQ 1 "><img src="__PUBLIC__/images/ok.gif" border="0"/><else/><img src="__PUBLIC__/images/locked.gif" border="0"/></if></a></td><php>}</php>
        <td>{:date('Y-m-d H:i',$v['creat_time'])}</td>
		   <php>if(display(CONTROLLER_NAME.'/edit')){</php><td> <a href="__URL__/edit/id/{$v['id']}/navTabId/{:CONTROLLER_NAME}"   class="btn btn-green btn-sm" data-toggle="dialog" data-width="800" data-height="400" data-id="dialog-mask" data-mask="true" >编辑</a></td><php>}</php>
		   </td>
    </tr> 
  </volist>
        </tbody>
    </table>
</div>
<div class="bjui-pageFooter">
        <div class="pages">
            <span>共 {$totalCount} 条  每页 {$numPerPage} 条</span>
        </div>
	    <div class="pagination-box" data-toggle="pagination" data-total="{$totalCount}" data-page-size="{$numPerPage}" data-page-current="{$currentPage}">
        </div>
</div>